import request from '@/utils/request'

// 获取列表
export function listInfo(query) {
  return request({
    url: '/weeklyReport/weeklyReport/list',
    method: 'get',
    params: query
  })
}

// 新增
export function addInfo(data) {
  return request({
    url: '/weeklyReport/weeklyReport',
    method: 'post',
    data: data
  })
}
// 修改
export function updateInfo(data) {
  return request({
    url: '/weeklyReport/weeklyReport',
    method: 'put',
    data: data
  })
}
// 删除
export function delInfo(id) {
  return request({
    url: '/weeklyReport/weeklyReport/' + id,
    method: 'delete'
  })
}

// 查询单条
export function getInfo(id) {
  return request({
    url: '/weeklyReport/weeklyReport/' + id,
    method: 'get'
  })
}
// 下载周报导入模板
export function importWeeklyReportTemplate() {
  return request({
    url: '/instrument/instrument/importWeeklyReportTemplate',
    method: 'get'
  })
}


